package demo7;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext("demo7");
        DBConnect dbc=context.getBean(DBConnect.class);
        System.out.println(dbc);

        DBConnect db1=context.getBean(DBConnect.class);
        System.out.println(db1);
    }
}
